package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class QualiInqueryResult {

    private static String qualiInqueryResult = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<qualiInqueryResult> \n" +
            "    <tenderProjectCode>{0}</tenderProjectCode>\n" +
            "    <bidSctionCode>{1}</bidSctionCode>\n" +
            "    <unifiedDealCode>{2}</unifiedDealCode>\n" +
            "    <passedApplicantList>{3}</passedApplicantList>\n" +
            "    <resultCreateTime>{4}</resultCreateTime>\n" +
            "    <attachmentSetCode>{5}</attachmentSetCode>\n" +
            "    <platFormCode>{6}</platFormCode>\n" +
            "    <pubServicePlatCode>{7}</pubServicePlatCode>\n" +
            "    <dataTimeStamp>{8}</dataTimeStamp>\n" +
            "</qualiInqueryResult>";

    public static void setQualiInqueryResult(String qualiInqueryResult,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8) {
        QualiInqueryResult.qualiInqueryResult = MessageFormat.format(qualiInqueryResult,s0,s1,s2,s3,s4,s5,s6,s7,s8);

    }
    public static void setQualiInqueryResult(){
        setQualiInqueryResult(qualiInqueryResult, ParameterUtils.get("tenderProjectCode"),
                                                ParameterUtils.get("bidSctionCode"),
                                                ParameterUtils.get("unifiedDealCode"),
                                                ParameterUtils.get("passedApplicantList"),
                                                ParameterUtils.get("resultCreateTime"),
                                                ParameterUtils.get("attachmentSetCode"),
                                                ParameterUtils.get("platFormCode"),
                                                ParameterUtils.get("pubServicePlatCode"),
                                                ParameterUtils.get("dataTimeStamp")
                );
    }

//    public static void main(String[] args) {
//        setQualiInqueryResult();
//        System.out.println(qualiInqueryResult);
//    }
}
